package com.panda.sports.manager.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author :  dorich
 * @project Name :  panda_data_service
 * @package Name :  com.panda.sports.manager.vo
 * @description :   多语言修改的vo
 * @date: 2019-08-13 21:34
 * @ModificationHistory Who    When    What
 * --------  ---------  --------------------------
 */
@Slf4j
@Data
@ApiModel(description = "修改多语言信息Vo")
public class LanguageInternationVo {

    @ApiModelProperty(value = "文字对应的编码",notes = "文字对应的编码")
    @Range(min = 1)
    @NotNull(message = "文字编码不能为空")
    private Long nameCode;


    @ApiModelProperty(value = "被修改语言信息",notes = "被修改语言信息")
    @NotNull(message = "被修改的信息不能为空")
    private Map<String, String> text;

}